package com.ruoyi.recycle.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.recycle.domain.ClientAddress;
import com.ruoyi.recycle.domain.ClientUserManagement;
import com.ruoyi.recycle.dto.ClientWithDrawDTO;
import com.ruoyi.recycle.dto.MyAccountDTO;
import com.ruoyi.recycle.dto.PaymentDTO;
import com.ruoyi.recycle.dto.SubordinateDTO;

import java.util.List;
import java.util.Map;

/**
 * 普通用户管理Service接口
 *
 * @author Wubk
 * @date 2022-05-21
 */
public interface IClientUserManagementService extends IService<ClientUserManagement> {
    /**
     * 查询普通用户管理
     *
     * @param id 普通用户管理主键
     * @return 普通用户管理
     */
    public ClientUserManagement selectClientUserManagementById(Long id);

    /**
     * 查询普通用户管理列表
     *
     * @param clientUserManagement 普通用户管理
     * @return 普通用户管理集合
     */
    public List<ClientUserManagement> selectClientUserManagementList(ClientUserManagement clientUserManagement);

    /**
     * 新增普通用户管理
     *
     * @param clientUserManagement 普通用户管理
     * @return 结果
     */
    public int insertClientUserManagement(ClientUserManagement clientUserManagement);

    /**
     * 修改普通用户管理
     *
     * @param clientUserManagement 普通用户管理
     * @return 结果
     */
    public int updateClientUserManagement(ClientUserManagement clientUserManagement);

    /**
     * 批量删除普通用户管理
     *
     * @param ids 需要删除的普通用户管理主键集合
     * @return 结果
     */
    public int deleteClientUserManagementByIds(Long[] ids);

    /**
     * 删除普通用户管理信息
     *
     * @param id 普通用户管理主键
     * @return 结果
     */
    public int deleteClientUserManagementById(Long id);

    AjaxResult saveIntegral(Long id, Long integral);

    AjaxResult getClientAddress(Integer clientId);

    AjaxResult addAddress(ClientAddress clientAddress);

    AjaxResult updateAddress(ClientAddress clientAddress);

    AjaxResult deleteAddress(Long[] ids);

    AjaxResult getAddress(Long clientId);

    Map<String, List<ClientUserManagement>> clientGroupBySalesman(LambdaQueryWrapper queryWrapper);

    AjaxResult login(String code);

    AjaxResult charge(PaymentDTO paymentDTO);

    AjaxResult withDraw(ClientWithDrawDTO withDrawDTO);

    AjaxResult myHome(Long clientId);

    AjaxResult generatePoster(Integer clientId,Integer clientType);

    AjaxResult carbonReduction(Integer clientId);

    AjaxResult mySubordinate(SubordinateDTO subordinateDTO);

    AjaxResult myAccount(MyAccountDTO myAccountDTO);

    AjaxResult myHomeByClientId(String openid,String clientType);

}
